#pragma once

class CSysLogDlg :public CDialogImpl<CSysLogDlg>, public CWinDataExchange<CSysLogDlg>
{
public:
    enum { IDD = IDD_DIALOG_SYS_LOG };

    BEGIN_MSG_MAP(CSysLogDlg)
        MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
        COMMAND_ID_HANDLER(IDOK, OnOK)
        COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
        COMMAND_HANDLER(IDC_BUTTON_SEARCH, BN_CLICKED, OnBnClickedButtonSearch)
    END_MSG_MAP()


    BEGIN_DDX_MAP(CSysLogDlg)
        DDX_CONTROL_HANDLE(IDC_DATETIMEPICKER, m_cTime)
        DDX_CONTROL_HANDLE(IDC_LIST, m_lcLog)
    END_DDX_MAP()


    LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
    LRESULT OnOK(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
    LRESULT OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);

protected:
    CDateTimePickerCtrl m_cTime;

    CListViewCtrl	m_lcLog;

public:
    LRESULT OnBnClickedButtonSearch(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
};
